package com.neuedu.pay.service;

import com.neuedu.mapper.PayMapper;
import com.neuedu.po.Pay;
import com.neuedu.po.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PayServiceImpl implements PayService {
    @Autowired
    private PayMapper dao;
    @Override
    public List<Pay> selectAll(Pay p) {
        return dao.selectAllpay(p);
    }

    @Override
    public Pay selectById(Pay p) {
        return dao.selectById(p);
    }

    @Override
    public int add(Pay p) {
        return dao.add(p);
    }

    @Override
    public int update(Pay p) {
        return dao.update(p);
    }

    @Override
    public int delete(Pay p) {
        return dao.delete(p);
    }
}
